﻿using System.Collections;
using Eneta.Portal.Forum.Core.Domain.Entities;

namespace Eneta.Portal.Forum.Core.Domain.Collections
{
    public class TopicCollection : CollectionBase
    {
        // Methods
        public int Add(Topic topic)
        {
            return List.Add(topic);
        }

        public void Sort(string sortPropertyName, SortDirection sortDirection)
        {
            InnerList.Sort(new UniversalSorter(sortPropertyName, sortDirection));
        }
    }
}
